package com.wulang.logistics.listener;

import com.wulang.order.model.OrderInfo;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@RabbitListener(queues = "order.queue")
@Component
public class








































































































LogisticsListener {

    @RabbitHandler
    public void listenerQueue(String message) {
        //针对接受到的消息处理相关的业务代码此处省略
        System.out.println("物流系统接受的消息String: " + message);
    }

    @RabbitHandler
    public void listenerQueue(OrderInfo message) {
        System.out.println("物流系统接受的消息orderInfo: " + message);
    }
}
